package adv5;

import java.io.File;
import java.io.IOException;

public class File3 {

	public static void main(String[] args) throws IOException {
		// list & listFiles:
		File f = new File("E:", "ietemp");
		System.out.println(f.exists());
		// f.createNewFile();// 不是文件夹
		if (f.exists() == false) {
			f.mkdir();
		} else {
			boolean d = f.delete();
			System.out.println("删除成功了？" + d);
		}
	}

}
